import http from "@/api/axios";

export const getListApi = (data: Base.GeneraDataType) => {
  return http({
    method: "post",
    url: "/base/biz/menu/list",
    data
  });
};
export const enabledMenuApi = (data: { id: string }) => {
  return http({
    method: "put",
    url: "/base/biz/menu/enabled",
    data
  });
};
export const disabledMenuApi = (data: { id: string }) => {
  return http({
    method: "put",
    url: "/base/biz/menu/disabled",
    data
  });
};
// 树形列表
export const getMenuTreeListApi = (data: Base.GeneraDataType = {}) => {
  return http({
    method: "post",
    url: "/base/biz/menu/tree",
    data
  });
};
